import { objDeepCopy,getDateString } from "@/assets/js/common.js";
import commonObject from "@/assets/js/xm.js";
let Controller = {
	created() {
		
	},
	mounted() {
		
	},
	methods: {
		//打开新增
		add(){
			let model = this.Model
			model.popType=0
			model.editDialogObsolete=true
		},
		//打开查看
		view(){
			let model = this.Model
			model.popType=1
			model.editDialogObsolete=true
		},
		handleSelectionChange(val) {
			this.Model.TableSelectData = val;
		},
		handleCurrentChange(val) {
			
		},
		handleSizeChange(val) {
			
		},
		cardClick(color) {
			this.Model.cardSelected = color;
		},
		toSearch(val) {
			
		},
		toClear(val) {
			this.Model.searchFromData = _.cloneDeep(this.Model.defaultSearchFromData);
		},
		toExport(val) {
			console.log(val);
		}
	}
}
export default Controller;